﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="head.ascx.cs" Inherits="Token.Piker.Web.uc.head" %>
<div class="header_top">
    <div class="header fix">
        <div class="f_l">
            <a href="<%= ResolveClientUrl("~/Default.aspx") %>">
                <img src="../images/logo.png" alt="皮壳网Logo"/></a>
        </div>
        <div class="piker-nav f_l">
            <ul>
                <li><a href="<%= ResolveClientUrl("~/Default.aspx") %>">首页</a> </li>
                <li><a href="<%= ResolveClientUrl("~/Classify.aspx") %>">分类相册</a> </li>
                <li><a href="<%= ResolveClientUrl("~/Activity.aspx") %>">画题</a> </li>
                <li><a href="<%= ResolveClientUrl("~/album_list.aspx") %>">校园新闻图片库</a> </li>
                <li><a href="<%= ResolveClientUrl("~/CertainPiker.aspx") %>">Piker'S</a> </li>
                <li><a href="<%= ResolveClientUrl("~/Top.aspx") %>">Top</a> </li>
            </ul>
        </div>
        <script type ="text/javascript">
            //注销登录
            function logout() {
                $.ajax({
                    url: "AJAX/Logout.ashx?op=Logout",
                    type: "POST",
                    dataType: "json",
                    success: function (json) {
                        if (json.success == "true") {
                            location.reload();
                        }
                        else {
                            alert("退出登录失败！");
                        }
                    }
                });
            }
        </script>
        <div class="p_link f_r">
            <ul id="top_right">
                <li><a id = "login" href="#div_login" kesrc="#div_login">登录</a> </li>
                <li><a id ="register" href="<%= ResolveClientUrl("~/Register.aspx") %>">注册</a> </li>
            </ul>
        </div>
    </div>
</div>
